package com.yiqi.liebang.feature.setting.view.adapter;

import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.suozhang.framework.framework.AM;
import com.yiqi.liebang.R;
import com.yiqi.liebang.entity.bo.PrivacyBo;

import butterknife.BindView;

public class BlackUserAdapter extends BaseQuickAdapter<PrivacyBo.UserList, BaseViewHolder> {



    public BlackUserAdapter() {
        super(R.layout.item_black_list);

    }

    @Override
    protected void convert(BaseViewHolder helper, PrivacyBo.UserList item) {

        AM.image().bindToCircleObject(item.getUserHead(),helper.getView(R.id.iv_black_avatar));
        helper .setText(R.id.tv_visitor_name, item.getUserName())
                .setText(R.id.tv_visitor_position, item.getPosition())
                .setVisible(R.id.iv_user_position,item.getIsOccupation()==1?true:false)
                .setVisible(R.id.iv_user_certification,item.getIsBasic()==1?true:false)
                .addOnClickListener(R.id.btn_friends_black);

    }


}